package com.bhs.sansong.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bhs.sansong.R;
import com.bhs.sansong.bean.TypeBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class RefuseAdapter extends BaseQuickAdapter<TypeBean, BaseViewHolder> {

    public RefuseAdapter(int layoutResId, @Nullable List<TypeBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, TypeBean item) {
        helper.setText(R.id.tv_refuse,item.getTypeName());
        helper.setImageResource(R.id.iv_refuse,item.isChecked()? R.mipmap.ic_checked:R.mipmap.ic_unchecked);
    }
}
